﻿@model IEnumerable<MvcDemo.Move.Models.Area>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            CityCode
        </th>
        <th>
            Name
        </th>
        <th>
            ParentId
        </th>
        <th>
            Status
        </th>
        <th>
            Remarks
        </th>
        <th>
            UpdateDate
        </th>
        <th>
            CreateDate
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
        <td>
            @item.CityCode
        </td>
        <td>
            @item.Name
        </td>
        <td>
            @item.ParentId
        </td>
        <td>
            @item.Status
        </td>
        <td>
            @item.Remarks
        </td>
        <td>
            @String.Format("{0:g}", item.UpdateDate)
        </td>
        <td>
            @String.Format("{0:g}", item.CreateDate)
        </td>
    </tr>
}

</table>

